package com.example.wx.dailyreport.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.wx.dailyreport.pojo.User;
import com.example.wx.dailyreport.pojo.UserRoleAuthority;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hulinbo
 * @since 2020-07-28
 */
public interface UserMapper extends BaseMapper<User> {

    int selectUserCountBy(User user, Long role_flag, Long authority_flag);

    List<User> selectUserHasRole(Long roleFlag);

    List<UserRoleAuthority> selectUserBy(User user, Long role_flag, Long authority_flag, int page, int limit);

}
